#ifndef _FRAME_BUILDER_H_

#include "types.h"

uint16_t get_sub_type_offset(const uint8_t *base_type, const uint8_t *sub_type);
uint16_t get_type_length(const uint8_t *type_name);
uint8_t *build_frame_from_schema(const uint8_t *base_type);

void set_frame_element(const uint8_t *param, const uint8_t *type_name, uint8_t *bin_frame, uint32_t value);
uint32_t get_frame_element(const uint8_t *param, const uint8_t *type_name, uint8_t *bin_frame);

#endif
